import { cryptoString } from './cryptoUtil'
import { secret } from '../config'

export function encryptPassword (password: string) {
  return cryptoString(`${password}${secret.cryptoPasswordSecret}`)
}

export function getPasswordSecret (password: string) {
  return cryptoString(`${password}${secret.jwtSecret}${password}`, 'md5')
}
